//package com.pengzy.core.gateway_security;
//
//import com.pengzy.comment.web.result.JsonResult;
//import com.pengzy.comment.web.webFluxUtils.ResponseResult;
//import org.springframework.security.access.AccessDeniedException;
//import org.springframework.security.web.server.authorization.ServerAccessDeniedHandler;
//import org.springframework.stereotype.Component;
//import org.springframework.web.server.ServerWebExchange;
//import reactor.core.publisher.Mono;
//
///**
// * @author xiaozhi 2023/7/18
// */
//
//@Component
//public class AccessDeniedConfig  implements ServerAccessDeniedHandler {
//    @Override
//    public Mono<Void> handle(ServerWebExchange exchange, AccessDeniedException denied) {
//        return ResponseResult.writeWith(exchange, JsonResult.error("账户无权限访问"));
//    }
//}
